home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13120 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
  2. From: thay@uoguelph.ca (Toby K Hay)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Random Sample Generators Wanted?
  5. Date: 4 Apr 1996 18:32:37 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4k14k5$lua@ccshst05.cs.uoguelph.ca>
  8. References: <4k0a08$a4t@infa.central.susx.ac.uk>
  9. NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. George Rattray (tepd6@central.susx.ac.uk) wrote:
  13. :    I am looking for algorithms to generate random samples that conform
  14. : to a specific probability density function.
  15.  
  16. :    The algorithms needed are Gaussian, Rayleigh, Rician, Poisson etc for
  17. : both real and complex numbers. Any other generation routines are also welcome.
  18.  
  19. You could start with RANLIB available via anonymous ftp (according to my 
  20. README file) from odin.mda.uth.tmc.edu in /pub/unix/ranlib.f.tar.Z  
  21. It has c code to generate random numbers from a variety of density 
  22. functions.  I don't remember complex numbers, but perhaps you could use 
  23. the code as a base for your own random complex generators.
  24. Toby Hay     thay@uoguelph.ca
  25.